package com.maywide.jdp.core.vo;

import java.util.Date;

public class FileVO {
	/**
	 * 
	 */
	private String id = null;
	/**
	 * 
	 */
	private String name = null;
	/**
	 * 
	 */
	private String text = null;
	/**
	 * 
	 */
	private boolean leaf = false;
	/**
	 * 
	 */
	private String fileName = null;
	/**
	 * 
	 */
	private long length = 0;
	/**
	 * 
	 */
	private Date lastModified = null;
	/**
	 * @return the name
	 */
	private String type = "F";
	
	public FileVO() {
	}
	
	public FileVO(String name,String fileName, long length, Date lastModified) {
		this.name = name;
		this.text = this.name;
		this.fileName = fileName;
		this.id = this.fileName;
		this.length = length;
		this.lastModified = lastModified;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @param text the text to set
	 */
	public void setText(String text) {
		this.text = text;
	}

	/**
	 * @return the text
	 */
	public String getText() {
		return text;
	}

	/**
	 * @return the length
	 */
	public long getLength() {
		return length;
	}
	/**
	 * @param length the length to set
	 */
	public void setLength(long length) {
		this.length = length;
	}
	/**
	 * @return the lastModified
	 */
	public Date getLastModified() {
		return lastModified;
	}
	/**
	 * @param lastModified the lastModified to set
	 */
	public void setLastModified(Date lastModified) {
		this.lastModified = lastModified;
	}
	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}
	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * @param fileName the fileName to set
	 */
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	/**
	 * @return the fileName
	 */
	public String getFileName() {
		return fileName;
	}

	/**
	 * @param leaf the leaf to set
	 */
	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}

	/**
	 * @return the leaf
	 */
	public boolean isLeaf() {
		return leaf;
	}
}
